package com.xy.Controller;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Controller;

/**
 * projectName:BK-2109
 * author:xiaoyang
 * time:2022/3/10 16:58
 * description:
 */
@Controller
@RabbitListener(queues = "Simple_queue")
public class TestConsumer {

    @RabbitHandler
    public void TestCon(String message){

        System.out.println(message);
    }

}
